import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import moment from 'moment'
import ElementPlus from 'element-plus'
import * as ElementPlusIcons from '@element-plus/icons-vue'
import 'element-plus/dist/index.css'

import funcs from './store/funcs'

const app = createApp(App);
app.use(ElementPlus);
for (const [key, component] of Object.entries(ElementPlusIcons)) {
    app.component(key, component);
}
app.use(store);
app.use(router);
app.config.globalProperties.$funcs = funcs;
app.config.globalProperties.$moment = moment;

app.mount('#app');
